﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;

public partial class admin_Admin_PageAdd : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

        }

    }

    protected void Button1_Click(object sender, EventArgs e)
    {

        string Atitle = ntitle.Text;
        string conn = TextBox1.Text;
        SetWeb Adda = new SetWeb();
        Adda.ADDNews(Atitle, conn);
        Response.Write("<script>alert('" + "添加数据成功！"+"');window.location.href=window.location.href;</script>");
    }

}
